package cn.edu.tzc.dao;

import java.util.List;
import java.util.Map;

import cn.edu.tzc.pojo.Card;
import cn.edu.tzc.pojo.CardTable;
import cn.edu.tzc.pojo.MyUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CardMapper {
    public List<Map<String, Object>> selectAllCards(int uid);
    public List<Map<String, Object>> selectAllCardsByPage(@Param("startIndex") int startIndex, @Param("perPageSize") int perPageSize, @Param("uid") int uid);
    public int addCard(Card card);
    public int updateCard(Card card);
    public CardTable selectACard(int id);
    public int deleteACard(int id);
    public int updatePwd(MyUser myuser);
}
